<template>
  <div>
    <H1>我是父组件</H1>
    <p>count {{ count }}</p>
    <Child  :age = "age" v-on:handle="handleAge" v-model:count="count"/>
  </div>
</template>

<script>
import Child from "./Child.vue";
export default {
  name: "App",
  data() {
    return {
        age: 12,
        count: 22
    };
  },
  components: {
    Child,
  },

  methods: {
    handleAge(val,e) {
        //  alert(val)
         console.log(e);  
    }
  }
};
</script>

<style scoped></style>
